/**
 * 
 */
package library;

/**
 * @author Gedsimon Pereira - 58554
 * @contact gspas@iscte.pt
 * 
 */
public class ContainsText implements Filter {

	private String filterName;

	/**
	 * @param string
	 */
	public ContainsText(String filterName) {
		this.filterName = filterName;
	}

	@Override
	public boolean accept(String filters) {
		if (!filters.isEmpty() && filters.contains(filters)) {
			return true;
		}
		return false;
	}

	/**
	 * @return the filterName
	 */
	public String getFilterName() {
		return filterName;
	}

	/**
	 * @param filterName
	 *            the filterName to set
	 */
	public void setFilterName(String filterName) {
		this.filterName = filterName;
	}

}
